package wordcount;

import java.io.IOException;

import junit.framework.Assert;
import junit.framework.TestCase;

public class AddMethodTes extends TestCase {
	//初始化
	word  wd;
	String filename ="123.c";
	protected void setUp()throws Exception{
		System.out.println("测试前");
		wd = new word();
		super.setUp();
	}
	public void testchar() throws IOException {
	
		String ch = wd.characterNum(filename);
		
			}

	public void testword() throws IOException {

		String ch = wd.wordNum(filename);

	}
	public void testline() throws IOException {
	
		String ch = wd.lineNum(filename);
		
			}
	public void testcode() throws IOException {
	
		String ch = wd.codeNum(filename);
		
			}
	public void testrefer() throws IOException {
		String ch = wd.referWord(filename, "refer.txt");
		
			}
	//结束
	protected void tearDown()throws Exception{
		System.out.println("测试后");
		super.tearDown();
	}
}
